import { useDetail, useList } from "@/hooks";
import { getUserInfoUrl } from "@/command/apiTool";
import { useRoute } from "vue-router";
export const useRequest = () => {
  const route = useRoute();
  // 百科品种详情
  const [getDetail] = useDetail(
    getUserInfoUrl(
      {
        dh: "/api/H5/skill/product/small/getDetail",
        xh: "/api/H5/skill/product/small/getDetail",
      },
      {
        pid: route.query.id,
      }
    ),
    {
      comment: "",
      id: "",
      img: "",
      name: "",
      list: [{ meno: "", title: "" }],
    }
  );
  return {
    getDetail,
  };
};
